/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#ifndef __LUA_SLIDER_H__
#define __LUA_SLIDER_H__
#pragma once

#include "LuaProgress.h"

namespace DuiLib {

class LuaSlider : public LuaProgress
{
    SDLUA_CLASS_DECLARE(LuaSlider);

    void SetEnabled(bool bEnable);

    int GetChangeStep();
    void SetChangeStep(int step);

    int SetThumbSize(LuaState *L);
    int GetThumbRect(LuaState *L);

    int GetThumbImage(LuaState *L);
    int SetThumbImage(LuaState *L);
    int GetThumbHotImage(LuaState *L);
    int SetThumbHotImage(LuaState *L);
    int GetThumbPushedImage(LuaState *L);
    int SetThumbPushedImage(LuaState *L);

    void SetValue(int nValue);
    void SetCanSendMove(bool bCanSend);
    bool GetCanSendMove();

};

}

#endif //__LUA_SLIDER_H__